/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved.
 * Description: demuxer common function
 * Author: HiMobileCam middleware develop team
 * Create: 2017-12-22
 */

#ifndef COMMON_FORMAT_H
#define COMMON_FORMAT_H

#include "ffdemux_common.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */

HI_S32 DemuxerRead(FfDemuxFormatMember *demuxer, HI_FORMAT_PACKET_S *fmtFrame);
HI_S32 DemuxerFree(FfDemuxFormatMember *demuxer, const HI_FORMAT_PACKET_S *fmtFrame);
HI_S32 DemuxerSeek(FfDemuxFormatMember *demuxer, HI_S32 streamIndex, HI_S64 toMs, HI_S32 flag);
HI_S32 DemuxerProbe(FfDemuxFormatMember *demuxer);
HI_S32 DemuxerGetinfo(const FfDemuxFormatMember *demuxer, HI_FORMAT_FILE_INFO_S *fmtInfo);
HI_S32 DemuxerSetattr(FfDemuxFormatMember *demuxer, HI_FORMAT_MEDIA_ATTR_S *fmtInfo);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif /* COMMON_FORMAT_H */
